<?php
namespace drivers;

class factory{
    private function __construct(){}

    static function config(){
        $config = new config();
        return $config;
    }

    static function routes(){
        self::config()->getConfig('routes');
        $route = new routes();
        return $route;
    }

    static function errLogs($name){
        $logs = new logs($name);
        $logs->inError();
        return $logs;
    }

    static function dataLogs($name,$file){
        $logs = new logs($name);
        $logs->inData($file);
        return $logs;
    }

}